package b2.widget.status
{
	import b2.player.StatusInfo;
	import b2.util.BFont;
	import b2.widget.RoundRec;
	
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFormat;
	
	public class StatusIconMessage extends Sprite
	{
		//具体信息
		public var tipText:TextField;
		//背景
		public var roundRec:RoundRec;
		
		public function StatusIconMessage(statusInfo:StatusInfo)
		{
			tipText = new TextField();
			tipText.selectable = false;
        	tipText.autoSize = TextFieldAutoSize.LEFT;
        	tipText.width = 220;
        	tipText.wordWrap = true;
			tipText.multiline = true;
			tipText.defaultTextFormat = new TextFormat("微软雅黑", 13, 0x000000);
			roundRec = new RoundRec(tipText.width + 5, tipText.height + 30, 0.8, BFont.roundRecColor);
			addChild(roundRec);
			addChild(tipText);
		}

	}
}